package com.joysuch.wwyt.workflow.enums;

/**
 * 其他模块跳转流程引擎，模块来源
 * @Author ZhangDong
 * @Date 2021/1/15 17:07
 */
public enum WorkFlowTaskRefSource {

    YHPC("隐患排查"),
    ZNXJ("智能巡检"),
    AQBBZRZ("安全包保责任制");

    private String source;

    WorkFlowTaskRefSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public static boolean hasSource(String source) {
        WorkFlowTaskRefSource[] values = WorkFlowTaskRefSource.values();
        for (WorkFlowTaskRefSource value : values) {
            if (value.source.equals(source)) {
                return true;
            }
        }
        return false;
    }

}
